export function setUserInfo(param) {
    param = isObject(param) ? JSON.stringify(param) : param
    sessionStorage.setItem('Auth-Info', param)
}

export function getUserInfo() {
    return JSON.parse(sessionStorage.getItem('Auth-Info'))
}

export function isObject(str) {
    return Object.prototype.toString.call(str) === "[object Object]"
}